package hkr.vfu.bluecenter.backend;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by mattiasbowallius on 31/10/13.
 */
public class SensorVO implements Serializable {
    //Sensor type constants
    public transient static final int ANALOG_TYPE = 0;
    public transient static final int PULSE_TYPE = 1;
    private double value;
    private String sensorName;
    private int type;
    private double k;
    private double m;
    private String unitString;
    private Date timeOfSample;

    public SensorVO() {
        value = 0;
        sensorName = "Channel";
        type = ANALOG_TYPE;
        setUnitString("");
        setK(1);
        setM(0);
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public double getValue() {
        return value;
    }

    public void setValue(double value, Date timeOfSample) {
        this.value = value;
        this.timeOfSample = timeOfSample;
    }

    public String getSensorName() {

        return sensorName;
    }

    public void setSensorName(String sensorName) {
        this.sensorName = sensorName;
    }

    public double getK() {
        return k;
    }

    public void setK(double k) {
        this.k = k;
    }

    public double getM() {
        return m;
    }

    public void setM(double m) {
        this.m = m;
    }

    public String getUnitString() {
        return unitString;
    }

    public void setUnitString(String unitString) {
        this.unitString = unitString;
    }

    public Date getTimeOfSample(){
        return timeOfSample;
    }
}
